package com.atguigu.eduservice.feign;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.feign.hystrix.VodFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * value：调用的服务名称
 * fallback : 容错处理
 */
@FeignClient(value = "com.atguigu.msm.service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodServiceApi {
    //根据视频id删除视频
    @DeleteMapping("/eduvod/video/removeAliyunVideo/{id}")
    public R removeAliyunVideo(@PathVariable String id);
}
